import { defineStore } from "pinia";
export const shopStore = defineStore("shop", {
  state: () => ({
    shopList: null, // 实体店列表数据
    pages: null, // 记录请求体的页数
    cateListData: null, // 顶部分类的数据

    ShopCateSecListData: {}, // 实体店二级分类列表数据
  }),
  getters: {},
  actions: {
    setCateFun(id, obj) {
      this.ShopCateSecListData[id] = obj;
    },
  },
  persist: true,
});
